<%@ taglib prefix="s" uri="/struts-tags"%>
<s:action name="mesStyles" namespace="/" executeResult="false" var="styles"/>
<s:action name="listPays" namespace="/" executeResult="false" var="pays"/>
<div id="main-content">
  <div class="inside">

    template enregistrement.jsp

    <!-- Message d'erreur -->
    <s:if test="errors.size()>0">
      <div id="message_erreur">
        <label><s:text name="form_erreur" /></label>
        <s:fielderror />
      </div>
    </s:if>
    
    <s:actionerror/>
    
    
    <s:form method="post" action="enregistrementSend" id="form-register">

      <h1>
        <s:text name="form_sign_in_h1" />
      </h1>

      <div>
        <label for="user.nom"><s:text name="form_sign_in_nom" /></label>
        <s:textfield name="user.nom" id="user.nom" />
      </div>
      <div>
        <label for="user.prenom"><s:text name="form_sign_in_prenom" /></label>
        <s:textfield name="user.prenom" id="user.prenom" />
      </div>
      <div>
        <label for="user.email"><s:text name="form_sign_in_email" /></label>
        <s:textfield name="user.email" id="user.email" />
      </div>
      <div>
        <label for="user.password"><s:text name="form_sign_in_password" /></label>
        <s:textfield name="user.password" id="user.password" />
      </div>


      <fieldset>
        <legend>
          <s:text name="form_sign_in_more_info" />
        </legend>
        
        <div>
          <label for="user.pays"><s:text name="form_sign_in_pays" /></label>
          <s:select list="#pays.listPays" name="user.pays" />
        </div>
        
        <div>
          <label for="user.adresse"><s:text name="form_sign_in_adresse" /></label>
          <s:textfield name="user.adresse" id="user.adresse" />
        </div>
        <div>
          <label for="user.ville"><s:text name="form_sign_in_ville" /></label>
          <s:textfield name="user.ville" id="user.ville" />
        </div>
        <div>
          <label for="user.codePostal"><s:text name="form_sign_in_code_postal" /></label>
          <s:textfield name="user.codePostal" id="user.codePostal" />
        </div>
              <div>
                <label for="user.colorPreference"><s:text name="form_sign_in_style_blog" /></label>
<%--                 <s:textfield name="styleBlog" id="styleBlog" /> --%>
<%--           <s:radio name="style" list="#styles.mesStyles" /> --%>
                <s:select list="#application.mesStyles" name="user.colorPreference" />
              </div>
        <!--       <div> -->
        <%--         <label for="avatar"><s:text name="form_sign_in_avatar" /></label> --%>
        <%--         <s:textfield name="avatar" id="avatar" /> --%>
        <!--       </div> -->
        <!--       <div> -->
        <%--         <label for="interest"><s:text name="form_sign_in_interest" /></label> --%>
        <%--         <s:textfield name="interest" id="interest" /> --%>
        <!--       </div> -->
      </fieldset>

      <div>
        <s:submit value="%{getText('form_sign_in_submit')}" />
      </div>

    </s:form>

  </div>
</div>
<!-- /#main-content -->